<?php

/**
 * ItemCompraNacional form.
 *
 * @package    dirsac
 * @subpackage form
 * @author     Miguel Flores
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class ItemCompraNacionalForm extends BaseItemCompraNacionalForm
{
  public function configure()
  {
    unset($this['compra_id']);
    
    $this->widgetSchema['articulo_id']->setAttribute('readonly','true');
    
    $this->widgetSchema['costo_neto_unitario'] = new sfWidgetFormInputText();
	$this->widgetSchema['costo_neto_unitario']->setAttribute('readonly', 'true');

    $this->widgetSchema['cantidad'] = new sfWidgetFormInputText();
	$this->widgetSchema['cantidad']->setAttribute('readonly', 'true');

    $this->widgetSchema['subtotal'] = new sfWidgetFormInputText();
    $this->widgetSchema['subtotal']->setAttribute('readonly', 'true');
  }
}
